package com.aloha.boot02.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * @author DaiZhiHeng
 * @date 2023/10/2 21:21
 */
@Profile("dev")
@Component
public class DevConfig implements IConfig {

    @Value("${spring.profiles.active}")
    private String profile;

    @Override
    public String getInfo() {
        return profile;
    }
}
